package com.hdu.dwh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.dwh.pojos.User;
import com.hdu.dwh.results.ResponseResult;
import com.hdu.dwh.vos.UserVo.UserOperationVo;

public interface UserService extends IService<User> {

    ResponseResult<User> login(String username, String password);
    ResponseResult<User> register(String username, String password);
    ResponseResult<UserOperationVo> updatePassword(String username, String newPassword);
    ResponseResult<UserOperationVo> deleteUser(String username);
    ResponseResult<UserOperationVo> updateUsertype(String username, String newUsertype);
    ResponseResult<UserOperationVo> addUser(String username, String password, String userType);

    /**
     * 根据用户名获取用户信息
     */
    User getUserByUsername(String username);
}